package com.abou.model.customer;

/**
 * @author kaka
 */
public class LastConsultedProduct {
  
  private int id;
  private String imagePath;
  private String name;
  private String price;
  private String link;
  
  /**
   *
   */
  public LastConsultedProduct() {

    super();
  }
  
  /**
   * @param imagePath
   * @param name
   * @param price
   * @param link
   */
  public LastConsultedProduct(int id, String imagePath, String name,
      String price, String link) {

    super();
    this.id = id;
    this.imagePath = imagePath;
    this.name = name;
    this.price = price;
    this.link = link;
  }
  
  public String getImagePath() {

    return imagePath;
  }
  
  public void setImagePath(String imagePath) {

    this.imagePath = imagePath;
  }
  
  public String getName() {

    return name;
  }
  
  public void setName(String name) {

    this.name = name;
  }
  
  public String getPrice() {

    return price;
  }
  
  public void setPrice(String price) {

    this.price = price;
  }
  
  public String getLink() {

    return link;
  }
  
  public void setLink(String link) {

    this.link = link;
  }
  
  public void setId(int id) {

    this.id = id;
  }
  
  public int getId() {

    return id;
  }
  
  @Override
  public boolean equals(Object lastProduct) {

    if (!(lastProduct instanceof LastConsultedProduct))
      return false;
    
    return this.id == ((LastConsultedProduct) lastProduct).getId();
  }
  
}
